﻿@model WeekWin
<div class="main">
    @*@Html.Action("Banner")
    @Html.Action("Scroll")*@
    <div class="strdeprocess">
        <div class="line"></div>
        <ul>
            <li>
                <i class="cur">1</i>
                <span>申请操盘资金</span>
            </li>
            <li>
                <i>2</i>
                <span>支付保证金</span>
            </li>
            <li>
                <i>3</i>
                <span>操盘申请成功</span>
            </li>
            <li>
                <i>4</i>
                <span>开始投资股票</span>
            </li>
            <li class="last">
                <i>5</i>
                <span>盈利七成归您</span>
            </li>

        </ul>
    </div>
    <div class="traderbox">
        <div class="content weekwin">
            <div class="left">
                <h3>
                    <span>申请实盘资金</span>
                    <a href="javascript:void(0)" id="FirmCapitalSelect" cur="@(Model != null && Model.Type == 0 ? "select" : "firminput")">其他实盘资金»</a>
                </h3>
                <ul id="CapitalSelect" style="display: @(Model != null && Model.Type == 0 ? "block" : "none");">
                    <li @(Model != null && Model.FirmCapital == 10000 ? "class=cur" : "") data="10000">
                        <label><em>1万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                    <li @(Model != null && Model.FirmCapital == 20000 ? "class=cur" : "") data="20000">
                        <label><em>2万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                    <li @(Model != null && Model.FirmCapital == 30000 ? "class=cur" : "") data="30000">
                        <label><em>3万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                    <li @(Model != null && Model.FirmCapital == 50000 ? "class=cur" : "") data="50000">
                        <label><em>5万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                    <li @(Model != null && Model.FirmCapital == 100000 ? "class=cur" : "") data="100000">
                        <label><em>10万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                    <li @(Model != null && Model.FirmCapital == 200000 ? "class=cur" : "") data="200000">
                        <label><em>20万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                    <li @(Model != null && Model.FirmCapital == 300000 ? "class=cur" : "") data="300000">
                        <label><em>30万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                    <li @(Model != null && Model.FirmCapital == 500000 ? "class=cur" : "") data="500000">
                        <label><em>50万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                    <li @(Model != null && Model.FirmCapital == 1000000 ? "class=cur" : "") data="1000000">
                        <label><em>100万</em>元</label>
                        <span>实盘资金</span>
                    </li>
                </ul>
                <div class="firminput" id="FirmCapital" style="display: @(Model != null && Model.Type == 0 ? "none" : "block");">
                    <p class="i">请输入您需要多少实盘资金</p>
                    <p class="ib">
                        @if (Model != null && Model.FirmCapital > 0 && Model.Type==1)
                        {
                            <input type="text" name="InputFirmCapital" id="InputFirmCapital" value="@(Model.FirmCapital)" class="focusin" />
                        }
                        else
                        {
                            <input type="text" name="InputFirmCapital" id="InputFirmCapital" value="最少2千，最多300万" />
                        }
                        元
                    </p>
                </div>
            </div>
            <div class="right">
                <h3>
                    <span>确认操盘规则</span>
                    <a href="#">今日限制股»</a>
                </h3>
                <ul>
                    <li>
                        <b>操盘须知</b>
                        <span>投资沪深A股，<i id="noneLimit">仓位不限制</i><i id="limit" style="display:none">仓位有限制</i>，盈利七成归您<br /><i id="limitinfo" style="color:#cd1818"></i></span>
                    </li>
                    <li>
                        <b>风险保证金</b>
                        <span>
                            <em class="orange" id="RiskMargin">@(Model != null ? Model.RiskMargin : 0)</em>元
                        </span>
                    </li>
                    <li>
                        <b>总操盘资金</b>
                        <span><em class="orange" id="TotalTrade">@(Model != null ? Model.TotalTrade.MoneyFormat() : "0")</em>元</span>
                    </li>
                    <li>
                        <b>亏损警戒线</b>
                        <span><em class="orange" id="LossWarLine">@(Model != null ? Model.LossWarLine.MoneyFormat() : "0")</em>元</span>
                    </li>
                    <li>
                        <b>亏损平仓线</b>
                        <span><em id="LossOpenLine" style="color:#cd1818">@(Model != null ? Model.LossOpenLine.MoneyFormat() : "0")</em>元</span>
                    </li>
                    <li>
                        <b>资金使用期限</b>
                        <span><i>5</i>个交易日</span>
                    </li>
                    <li>
                        <b>账户管理费</b>
                        <span>完全免费</span>

                    </li>
                    <li>
                        <b>开始交易时间</b>
                        <span>
                            <label for="tday">
                                <input type="radio" name="StartTime" @(Model != null && Model.StartTime == 0 ? "checked=checked" : "") id="tday" value="0"/>今天
                            </label>
                            <label for="NextTrader">
                                <input type="radio" name="StartTime" @(Model != null && Model.StartTime == 1 ? "checked=checked" : "") id="NextTrader" value="1" />下个交易日
                            </label>
                        </span>
                    </li>
                </ul>
            </div>
            <p>如您不清楚规则，或有其他疑问，请联系客服：4008-270-866</p>
            <p>
                <label><input id="agree" type="checkbox" checked="checked">我已阅读并同意</label>
                <a class="blue" target="_blank" href="#">《天天赢合作操盘协议》</a>
            </p>
            <p>
                <input type="button" class="button red" value="我要操盘" id="WillStock" />
            </p>
        </div>
    </div>
    @{Html.RenderPartial("Info");}
</div>
<script type="text/javascript">
    $(function () {
        weekwin.Init(@(Model != null? Model.Type : 0));
    });
</script>